{include file="../application/tenno/view/common/html.html" /}
    <title>{$query_name} 的搜索结果 - {php} echo config('app.app_name') {/php}</title>
{include file="../application/tenno/view/common/head.html" /}
{include file="../application/tenno/view/common/top_left.html" /}
    <form class="navbar-left navbar-form nav-search mr-md-3" method="post" action="/queryKuBo">
        <div class="input-group">
            {:token()}
            <input type="text" name="query_stuff_name" required="required" placeholder="搜索你想查找的内容 ..." class="form-control">
            <div class="input-group-append">
                    <span class="input-group-text">
                        <i class="la la-search search-icon"></i>
                    </span>
            </div>
        </div>
    </form>
{include file="../application/tenno/view/common/top_right.html" /}
{include file="../application/tenno/view/common/left_menu.html" /}
    </div>
    </div>
    <div class="main-panel">
    <div class="content">
    <div class="container-fluid">
        <h4 class="page-title" style="font-weight: 500;">{php} echo config('menu.ku_bo') {/php}</h4>
        <div class="card">
            <div class="card-header">
                <div class="card-title">
                    <a href="/sendOther/kuBo" class="btn btn-danger">
                        {php} echo config('menu.send_stuff_menu_name') {/php}
                    </a>
                    |
                    <a href="/other" class="btn btn-primary">
                        杂项
                    </a>
                    <a href="/arcane" class="btn btn-primary">
                        赋能
                    </a>
                    <a href="/goldGarbage" class="btn btn-primary">
                        金垃圾
                    </a>
                    <a href="/silverGarbage" class="btn btn-primary">
                        银垃圾
                    </a>
                    <a href="/sculpt" class="btn btn-primary">
                        雕塑
                    </a>
                    <a href="/kuWa" class="btn btn-primary">
                        库娃
                    </a>
                    <a href="#" class="btn btn-dark">
                        库伯
                    </a>
                </div>
            </div>
            <div class="card-body">
                <table class="table table-hover table-responsive" style="text-align: center;">
                    <thead>
                    <tr>
                        <th scope="col">游戏 ID</th>
                        <th scope="col">物品名称</th>
                        <th scope="col" style="width: 10%">游戏状态</th>
                        <th scope="col">单价 / 片</th>
                        <th scope="col">数量</th>
                        <th scope="col">发布时间</th>
                        <th scope="col" style="width: 8%"></th>
                    </tr>
                    </thead>
                    <tbody>
                    {volist name='other_list' id='v'}
                    <tr>
                        <td>
                            <b>
                                <a href="/userFile/{php}echo base64_encode($v['uid']['id']){/php}" title="点击查看此用户信息" style="color: black;">
                                    {$v.uid.game_id}
                                </a>
                            </b>
                        </td>
                        <td>
                            <span style="color: royalblue;">
                                {$v.stuff_name}
                            </span>
                        </td>
                        <td>
                            {eq name="v['uid']['game_state']" value="1"}
                            <b style="color: forestgreen;">
                                ONLINE
                            </b>
                            {else/}
                            <b style="color: red;">
                                OFFLINE
                            </b>
                            {/eq}
                        </td>
                        <td>
                            <b style="color: red;font-size: 20px;">{$v.unit_price}</b>
                            Platinum
                        </td>
                        <td>
                            <b>{$v.num}</b>
                            片
                        </td>
                        <td>
                            {$v.update_time}
                        </td>
                        <td>
                            <input style="width: 10%;position: absolute;z-index: -999" id="copy{$v.id}" type="text"
                                   value="/w {$v['uid']['game_id']} 老铁！我想要 {$v.stuff_name}，{$v.unit_price} 白金 - {php} echo config('app.app_name') {/php}&nbsp;{php} echo config('app.app_host') {/php}"
                            >
                            <button class="btn btn-success" onclick="copyText({$v.id})">
                                <i class="la la-comment-o" style="font-size: 18px;"></i>
                            </button>
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                </table>
                <div id="page_list" class="table-responsive">
                    {$other_list|raw}
                </div>
                <style>
                    div#page_list li span{
                        border-radius: 100px !important;
                        margin: 0 2px;
                        color: #777777;
                        border-color: #ddd;
                        position: relative;
                        display: block;
                        padding: .5rem .75rem;
                        line-height: 1.25;
                        background-color: #fff;
                        border: 1px solid #dee2e6;
                    }
                    div#page_list li a{
                        border-radius: 100px !important;
                        margin: 0 2px;
                        color: #777777;
                        border-color: #ddd;
                        position: relative;
                        display: block;
                        padding: .5rem .75rem;
                        line-height: 1.25;
                        background-color: #fff;
                        border: 1px solid #dee2e6;
                    }
                    div#page_list .active span{
                        background: #1D62F0;
                        border-color: #1D62F0;
                        color: #ffffff;
                    }
                </style>
            </div>
        </div>
    </div>
    </div>
{include file="../application/tenno/view/common/footer.html" /}